maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=py3-virtualenvwrapper
pkgver=6.1.0
pkgrel=1
pkgdesc="Extensions to Ian Bicking's virtualenv tool"
url="https://virtualenvwrapper.readthedocs.io/"
arch="noarch"
license="MIT"
depends="python3 py3-virtualenv py3-stevedore"
makedepends="
	grep
	py3-gpep517
	py3-pbr
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest py3-six"
subpackages="$pkgname-pyc"
source="https://pypi.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-$pkgver.tar.gz"
builddir="$srcdir/virtualenvwrapper-$pkgver"
options="!check" # fail to run

build() {
	export PBR_VERSION=$pkgver
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	sh tests/run_tests
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
78e09956132862fbf1caf53cb6c9375aa3718685f72d8f3fb61e402e6b26e8568d5b3a3ed18142b14f3b2691f89e6f912782e813d8139dc71ceb7e47bde8d0b0  virtualenvwrapper-6.1.0.tar.gz
"
